import { ITable } from '@/base-ui/table/src/type'
export const useTableConfig = (): ITable => {
  return {
    propList: [
      { prop: 'name', label: '用户名', 'min-width': '100', slotName: 'name' },
      { prop: 'realname', label: '真实姓名', 'min-width': '100', slotName: 'realname' },
      { prop: 'cellphone', label: '电话号码', 'min-width': '120', slotName: 'cellphone' },
      { prop: 'enable', label: '状态', 'min-width': '100', slotName: 'enable' },
      { prop: 'createAt', label: '创建时间', 'min-width': '140', slotName: 'createAt' },
      { prop: 'updateAt', label: '更新时间', 'min-width': '140', slotName: 'updateAt' },
      { prop: 'operate', label: '', 'min-width': '140', slotName: 'operate' }
    ],
    showSelectColumn: true,
    showIndexColumn: true,
    title: '用户列表',
    handleName: '新建用户'
  }
}
